/*************************************************************
 * File: Status.java
 * Copyright (c) 2012
 * Author: Huang Shaobin
 * Email: Shaobin.Software@gmail.com Shaobin_Software@163.com 
 * Date: Feb 20, 2013
 * Description: 
 ************************************************************/

package snow.core.enums;

/**
 * 记录状态
 * 
 * @author Shaobin.Software@gmail.com Shaobin_Software@163.com
 * @version 1.0
 */
public enum Status {

	SUCCESS(0x1), FAILURE(0x0);

	public static Status toStatusFrom(int value) {
		return value == 1 ? Status.SUCCESS : Status.FAILURE;
	}

	private final int value;

	private Status(int value) {
		this.value = value;
	}

	public int getValue() {
		return this.value;
	}
}
